document.addEventListener('plusready', function(event) {
	var user = app.getUser();
	document.querySelector('#organ').innerText = user.organ;
	document.querySelector('#name').innerText = user.name;
});
document.querySelector('#exit').addEventListener('tap', function(event) {
	var btnArray = [{
		title: "注销当前账号"
	}, {
		title: "直接关闭应用"
	}];
	plus.nativeUI.actionSheet({
		cancel: "取消",
		buttons: btnArray
	}, function(event) {
		var index = event.index;
		switch(index) {
			case 1:
				app.removeUser();
				plus.runtime.restart();
				break;
			case 2:
				plus.runtime.quit();
				break;
		}
	});
});